package be.nepherte.movmanager.client.gui.components;

/**
 * The sortable interface defines the signatures and the constants for the sortable table.
 * <p>
 * This file is part of MovManager.
 * </p>
 * <p>
 * MovManager is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * </p>
 * <p>
 * MovManager is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * </p>
 * <p>
 * You should have received a copy of the GNU General Public License along with
 * MovManager. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses</a>.
 * </p>
 * 
 * @author 	Bart Verhoeven, Parvinder Thapar
 * @since 	20/05/2009
 * @version 0.1
 */
public interface Sortable {
	/**Constants defining the current direction of the sort on a column.*/
	public static int SORT_ASC = 0;
	public static int SORT_DESC = 1;
	
	/**
	 * Define what happens when the column is sorted/
	 * 
	 * @param	columnIndex
	 * 			the index of the column to sort
	 */
	public void sort(int columnIndex);
}
